home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 655 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: golem.phys.ndsu.NoDak.edu!not-for-mail
  2. From: mooney@golem.phys.ndsu.NoDak.edu (Timothy Mooney)
  3. Newsgroups: gnu.misc.discuss,comp.std.c
  4. Subject: Re: Coding Standards are ignorant
  5. Date: 26 Mar 1996 22:05:24 -0600
  6. Organization: North Dakota Higher Education Computing Network
  7. Message-ID: <4jaeq4$9ig@golem.phys.ndsu.NoDak.edu>
  8. References: <4gum82$14v4@info4.rus.uni-stuttgart.de> <4i829o$qbh@usenet.pa.dec.com> <4ikptb$er8@golem.phys.ndsu.NoDak.edu> <root.827268746@rscernix>
  9. NNTP-Posting-Host: golem.phys.ndsu.nodak.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13.  
  14. In article <root.827268746@rscernix>, Dan Pop <danpop@mail.cern.ch> wrote:
  15. >In <4ikptb$er8@golem.phys.ndsu.NoDak.edu> mooney@golem.phys.ndsu.NoDak.edu (Timothy Mooney) writes:
  16. >
  17. >>In article <4i829o$qbh@usenet.pa.dec.com>,
  18. >>Norman Diamond <diamond@tbj.dec.com> wrote:
  19. >>>In article <danpop.826543744@rscernix>, danpop@mail.cern.ch (Dan Pop) writes:
  20. >>>>In <KANZE.96Mar8125719@gabi.gabi-soft.fr> kanze@gabi-soft.fr (J. Kanze) writes:
  21. >>>>Does any of your compilers have a -iso option?  
  22. >>>
  23. >>>At least one compiler has a -std option.  That's the good news.  The bad news
  24. >>>is that it's documented (if an online manual page is a document :-)  thus:
  25. >>>     -std Produce errors for constructions that are not compatible with the
  26. >>>          ANSI standard.
  27. >>
  28. >>DEC's cc for Digital Unix 3.2 has a -std option, and the man page does
  29. >>mention the ISO standard.
  30. >
  31. >Does it?  Not as far as I can see on my Digital Unix 3.2 box:
  32.  
  33. You're not looking in the right spot (this is 3.2c):
  34.  
  35. $uname -s -r
  36. OSF1 V3.2
  37. $man cc | grep -i iso
  38.   _ANSI_C_SOURCE   ISO C and ANSI C
  39.   standard.  For strict ISO C and ANSI C conformance, the compiler command
  40.  
  41. Both references are earlier than the section on the arguments and their
  42. meanings.
  43.  
  44. Tim
  45. -- 
  46. Tim Mooney                              mooney@toons.cc.ndsu.nodak.edu
  47. Information Technology Services         (701) 231-1076 (Voice)
  48. Room 242-J6, IACC Bldg.                 (701) 231-8541 (FAX)
  49. North Dakota State University, Fargo, ND 58105
  50.